<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    .content {
      width: 300px;
      margin: 0 auto;
      border: 1px solid red;
    }
    .content span {
      padding: 0 10px;
      display: table-cell;
    }
    .content div {
      display: table-cell;
    }
  </style>
</head>
<body>
  <div class="content">
    <span>123</span>
    <div>dididididi</div>
  </div>
</body>
</html>